<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<!DOCTYPE HTML>
<html lang="zh-CN">
    <head>
    <meta charset="utf-8">
    <%@ include file="/WEB-INF/views/include/head.jsp"%> 
    <link rel="stylesheet" href="${ctxStatic}/css/layerSm.css">
        <script type="text/javascript">
            //删除项目
            function delDict(){
                $.post("${ctx}/custom/fitproperty/delete?id=${fitproperty.id}&&oldPropertyValue=${fitproperty.oldPropertyValue}",'',function(result){
                    tipParent(result.message);
                    if(result.statusCode==STATUSCODEOK){
                        window.parent.frames[0].location.reload();
                        closeWin(); 
                     }
                },'json');
           }
        </script>
    </head>
    <body>
        <!--头部-->
        <form id="inputForm" name="inputForm">
            <!-- 查看项目 -->
            <div id="createHead" class="layerHeader clearfix">
                <p class="headerTitle"><spring:message code="fitproperty_showfitproperty"/></p>
                <div class="headerButton clearfix">
                     <shiro:hasPermission name="custom:fitproperty:edit">
                         <!-- 编辑 -->
                         <button type="button" onclick="popup('935px','550px','${ctx}/custom/fitproperty/form?id=${fitproperty.id}');closeWin();"><spring:message code="company_edit_edit"/></button>
                         <!-- 删除操作 -->
                         <button type="button"  onclick="del(delDict)"><spring:message code="company_edit_delete"/></button>
                     </shiro:hasPermission>
                    <!-- 取消 -->
                    <button type="button" onclick="closeWin()"><spring:message code="company_edit_cancle"/></button>
                </div>
            </div>
            <div id="showHtml" class="tabBoxSm showHtml" >
                <input type="hidden"  id="listLength" value="${fn:length(fitpropertyList) } "/>
                <div class="tabSm smOrderBox">
                    <div class="clearfix">
                        <div class="col-50 items clearfix">
                        <!-- 项目代码 -->
                            <p style="width: 67px;float: left"><spring:message code="fitproperty_Cd_show"/></p>
                            <input id="propertyCd" name="propertyCd" style="border: none;color: #333;background-color: inherit;margin-left: 30px" disabled="true" value="${fitproperty.propertyCd}" />
                        </div>
                        <div class="col-50 items clearfix haveToBox">
<%--                        <!-- 量体类别 -->
                            <p class="tit"><spring:message code="fitproperty_fitUseTypeCd_show"/></p>
                            <input id="fitUseTypeCd" name="fitUseTypeCd" style="margin-left: 30px" disabled="true"  value="${fns:getDictName(fitproperty.fitUseTypeCd)}" />--%>
    <!-- 项目款式分类-->
    <p class="tit"><spring:message code="fitproperty_styleCategory_show"/></p>
    <input id="styleCategoryCd" name="styleCategoryCd" style="margin-left: 30px" disabled="true"  value="${fns:getDictName(fitproperty.styleCategoryCd)}" />
                        </div>
                     </div>
                    <div class="clearfix">
                        <div class="col-50 items clearfix">
                            <!-- 项目值 -->
                            <p class="tit"><spring:message code="fitproperty_value_show"/></p>
                            <input id="propertyValue" name="propertyValue" style="margin-left: 30px" disabled="true"  value="${fitproperty.propertyValue}" />
                        </div>
                        <div class="col-50 items clearfix ">
                            <!-- 项目中文名称 -->
                            <p class="tit"><spring:message code="fitproperty_Cn_show"/></p>
                            <input id="propertyNameCn" name="propertyNameCn" style="margin-left: 30px" disabled="true"  value="${fitproperty.propertyNameCn}" />
                        </div>
                    </div>
                    <div class="clearfix">
                        <div class="col-50 items clearfix">
                            <!-- 项目英文名称 -->
                            <p class="tit"><spring:message code="fitproperty_En_show"/></p>
                            <input id="propertyNameEn" name="propertyNameEn" style="margin-left: 30px" disabled="true"  value="${fitproperty.propertyNameEn}" />
                        </div>
                        <div class="col-50 items clearfix haveToBox">
                            <!-- 项目日文名称 -->
                            <p class="tit"><spring:message code="fitproperty_Jp_show"/></p>
                            <input id="propertyNameJp" name="propertyNameJp" style="margin-left: 30px" disabled="true"  value="${fitproperty.propertyNameJp}" />
                        </div>
                    </div>
                </div>
                <div class="">
                    <div class="tableArea">
                        <!-- 子项目列 -->
                        <div class="">
                            <div style="float: left;margin-left: 10px">
                                <p class="tit"><spring:message code="fitproperty_sub_show"/></p>
                            </div>
                            <div style="float: right;">
                            </div>
                        </div>
                        <div class="tableScroll tableScrollSm" style="padding-top: 0px;margin-left: 80px" >
                            <div style = "overflow: auto; position: relative;background-color:#ddd;">
                                <table cellpadding="0" class="" name ="perantTable" id ="perantTable"  style="border: none">
                                    <tr>
                                        <!-- 子项目值 -->
                                        <th class="table-gszhkhmc" style="border: none">
                                            <spring:message code="fitproperty_value" />
                                        </th>
                                        <!-- 子项目加量范围 -->
                                        <th class="table-gszhkhmc" style="border: none">
                                            <spring:message code="fitproperty_additionalRanges"/>
                                        </th>
                                        <!-- 子项目缩减范围 -->
                                        <th class="table-gszhkhmc" style="border: none">
                                            <spring:message code="fitproperty_rangeReduction"/>
                                        </th>
                                        <!-- 子项目中文名称 -->
                                        <th class="table-gszhkhmc" style="border: none">
                                            <spring:message code="fitproperty_Cn"/>
                                        </th>
                                        <!-- 子项目英文名称 -->
                                        <th class='table-gszhkhmc' style="border: none">
                                            <spring:message code="fitproperty_En"/>
                                        </th>
                                        <!-- 子项目日文名称 -->
                                        <th class='table-gszhkhmc'style="border: none">
                                            <spring:message code="fitproperty_Jp"/></th>
                                    </tr>
                                </table>
                            </div>
                            <div style = "overflow: auto; position: relative;background-color:#fff;border:1px solid #B7B9B8;height:280px;">
                                <table cellpadding="0" class="" name ="perantTable" id ="perantTable" >
                                    <c:forEach items="${fitpropertyList}" var="fitpropertyList" varStatus="status">
                                        <tbody >
                                        <tr>
                                            <td style="border: none;border-bottom:1px solid #B7B9B8; border-right:1px solid #B7B9B8"; class="table-gszhkhmc" >${fitpropertyList.propertyValue}</td>
                                            <td style="border: none;border-bottom:1px solid #B7B9B8; border-right:1px solid #B7B9B8"; class="table-gszhkhmc" title="<fmt:formatNumber value="${fitpropertyList.propertyInFrom}" pattern="#,#00.00#"/>~<fmt:formatNumber value="${fitpropertyList.propertyInTo}" pattern="#,#00.00#"/>"><fmt:formatNumber value="${fitpropertyList.propertyInFrom}" pattern="#,#00.00#"/>~<fmt:formatNumber value="${fitpropertyList.propertyInTo}" pattern="#,#00.00#"/></td>
                                            <td style="border: none;border-bottom:1px solid #B7B9B8; border-right:1px solid #B7B9B8"; class="table-gszhkhmc" title="<fmt:formatNumber value="${fitpropertyList.propertyOutFrom}" pattern="#,#00.00#"/>~<fmt:formatNumber value="${fitpropertyList.propertyOutTo}" pattern="#,#00.00#"/>"><fmt:formatNumber value="${fitpropertyList.propertyOutFrom}" pattern="#,#00.00#"/>~<fmt:formatNumber value="${fitpropertyList.propertyOutTo}" pattern="#,#00.00#"/></td>
                                            <td style="border: none;border-bottom:1px solid #B7B9B8; border-right:1px solid #B7B9B8"; class="table-gszhkhmc" title="${fitpropertyList.propertyNameCn}">${fitpropertyList.propertyNameCn}</td>
                                            <td style="border: none;border-bottom:1px solid #B7B9B8; border-right:1px solid #B7B9B8"; class='table-gszhkhmc' title="${fitpropertyList.propertyNameEn}">${fitpropertyList.propertyNameEn}</td>
                                            <td style="border: none;border-bottom:1px solid #B7B9B8; border-right:1px solid #B7B9B8"; class='table-gszhkhmc' title="${fitpropertyList.propertyNameJp}">${fitpropertyList.propertyNameJp}</td>
                                        </tr>
                                        </tbody>
                                    </c:forEach>
                                </table>
                                <div id="hiddenHtml"></div>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="tabSm smOrderBox">
                        <div class="clearfix">
                            <div class="col-50 items clearfix">
                            <!-- 项目状态: -->
                            <p class="tit"><spring:message code="项目状态"/><spring:message code="common_colon"/></p>
                             <c:if test="${fitproperty.enableFlag == 1}">
                                <td style="border: none;border-bottom:1px solid #B7B9B8;" class="table-gszhkhwd"><spring:message code="fitproperty_enable"/></td>
                            </c:if>
                             <c:if test="${design.enableFlag == 0}">
                                <td style="border: none;border-bottom:1px solid #B7B9B8;" class="table-gszhkhwd"><spring:message code="fitproperty_disable"/></td>
                             </c:if>
                            </div>
                            <div class="col-50 items haveToBox">
                                 <!-- 描述： -->
                                 <p class="tit"><spring:message code="fitproperty_remarks_show"/></p>
                                 <input id="itemNameCn" name="itemNameCn" style="border: none;color: #333;background-color: inherit;margin-left: 30px" disabled="true" value="${fitproperty.remarks}" >
                             </div>
                         </div>
                 </div>
            </div>
        </form>
    </body>
</html>
